package com.guanzhi.config;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;

import java.io.IOException;

/**
 * SpringSecurity
 * <p> Package: com.guanzhi.config </p>
 * <p> File: MyAuthenticationEntryPoint.java </p>
 * <p> Description:  (未认证处理)</p>
 * <p> Date: 2024/3/30 16:44</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/3/30 16:44
 * @since jdk17（jdk版本）
 */
public class MyAuthenticationEntryPoint implements AuthenticationEntryPoint {
    @Override
    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {
        //自行实现逻辑
    }
}
